#!/usr/bin/env python

import sys
sys.path.append('..')
import meson

def on_timer(arg):
    print 'callback:', arg

def main():
    meson.init() #, ('127.0.0.1', 10060))
    meson.timer(3, on_timer, 'xxx')
    meson.timer(2, on_timer, 'yyy')
    meson.run()

if __name__ == '__main__':
    main()
